package com.niguang.work.show.api.service.impl;

import com.niguang.work.show.api.entity.User;
import com.niguang.work.show.api.mapper.UserMapper;
import com.niguang.work.show.api.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.niguang.work.show.common.util.HttpClientUtil;
import com.niguang.work.show.yxyfFace.service.YmyfFaceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 12380
 * @since 2018-12-05
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Resource
    private YmyfFaceService ymyfFaceService;

    @Override
    public Boolean updateUser(User user) {
        String file = HttpClientUtil.uploadFile("workShow", user.getFile(), "");
        user.setUserPic(file);
        user.insert();

        return null;
    }


}
